package com.zhongkun.datahome.service.res.task;

import com.zhongkun.datahome.service.constant.TaskStatusEnum;
import com.zhongkun.datahome.service.constant.TaskTypeEnum;
import com.zhongkun.datahome.service.domain.Task;
import com.zhongkun.datahome.service.res.CommonFileVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

@Data
public class TaskVo extends Task {

    @ApiModelProperty("文件列表")
    private List<CommonFileVo> fileVoList;

    @ApiModelProperty("进度")
    private List<TaskProgressVo> taskProgressVoList;

    @ApiModelProperty("发起人")
    private String startUserName;

    @ApiModelProperty("接收人")
    private String receiveUserName;

    public String getTaskTypeName() {
        return TaskTypeEnum.getTaskTypeName(this.getTaskType());
    }

    public String getTaskStatusName() {
        return TaskStatusEnum.getTaskStatusName(this.getTaskStatus());
    }
}

